package com.telecom.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author GWX.cz
 * @since 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID(主键)
     */
    private Long id;

    /**
     * 订单号(唯一)
     */
    private String orderNumber;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 支付状态(0:PENDING_PAYMENT 1:PAID 2:REFUNDED)
     */
    private Integer payStatus;

    /**
     * 取餐状态(0:PENDING_PICKUP 1:PICKED_UP 2:CANCELLED)
     */
    private Integer pickupStatus;

    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;

    /**
     * 实付金额
     */
    private BigDecimal actualAmount;

    /**
     * 套餐ID
     */
    private Long mealId;

    /**
     * 取餐号二维码 URL
     */
    private String qrCodeUrl;

    /**
     * 取餐方式(0:堂食 1:打包)
     */
    private Integer diningType;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 是否满意(1:是 0:否)
     */
    private Boolean isSatisfied;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
